<% content_for :foot_scripts do%>
<%= tinymce :height => 300 %>
<% end %>
<div class="container">
	<div class="tabbable tabs-left" id="admin_bar">
		<%= render 'shared/admin_bar'%>
		<div class="tab-content">
			<h1> <%= t 'cap_nhat_bai_viet' %></h1>
			<p>
				(<a href="<%= url_for :action => 'index', :controller => '/bai_viet', :danh_muc_slug => @danh_muc.slug, :bai_viet_slug => @bai_viet.slug %>" title="<%= t'xem_bai_viet' %>"><%= t'xem_bai_viet' %> <i class='icon-signin'></i></a>)
			</p>
			<%= form_tag request.url, :id=> 'tao_bai_viet', :class=> "tao_html" do %>
			<p>
				<%= label_tag :tieu_de, t('tieu_de_bai_viet') %>
				<%= text_field_tag :tieu_de, @bai_viet.tieu_de %>
			</p>
			<p>
				<%= label_tag :ngon_ngu, t('ngon_ngu_bai_viet') %>
				<%= select_tag(:ngon_ngu, options_for_select([['Tiếng Việt', "vi"], ['English', "en"]], @bai_viet.ngon_ngu)) %>
			</p>
			<div>
				<%= label_tag :noi_dung, t('noi_dung_bai_viet') %>
				<%= text_area_tag :noi_dung, @bai_viet.noi_dung, :class => "tinymce", :rows => 40, :cols => 120 %>
			</div>
			<p >
				<%= submit_tag t('cap_nhat_bai_viet'), :class=>"btn btn-large btn-primary" %>
			</p>
			<% end %>
		</div>
	</div>
</div>
